package com.kpn.aurora.util;

import org.springframework.web.multipart.MultipartFile;

public class MultipartFileUtil {

    public static String getMultipartFilePrefix(MultipartFile file) {
        String allStr = file.getOriginalFilename();
        return allStr.substring(0, allStr.lastIndexOf("."));
    }

    public static String getMultipartFileSuffix(MultipartFile file) {
        String allStr = file.getOriginalFilename();
        return allStr.substring(allStr.lastIndexOf("."), allStr.length());
    }

}
